package com.example.navbardemo;

import com.example.navbardemo.fraction.CompontentPage;
import com.example.navbardemo.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.fraction.FractionAbility;
import ohos.aafwk.content.Intent;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends FractionAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

//        //隐藏状态栏和导航栏，全屏显示
//        getWindow().addFlags(WindowManager.LayoutConfig.MARK_TRANSLUCENT_STATUS);
//
//        getWindow().addFlags(WindowManager.LayoutConfig.MARK_TRANSLUCENT_NAVIGATION);
//
//        getWindow().addFlags(WindowManager.LayoutConfig.MARK_FULL_SCREEN);
    }
}
